package com.lagou.module3_6;

/**
 * @author wsl
 * @date 2021/7/21 21:14
 * @project_name javase
 */
public class MyToStringTest {

    public static void main(String[] args) {


        int[] arr1 ={};
        System.out.println("数组中的元素为："+MyToString.toString(arr1));//[]

        arr1 = new int[]{1, 2, 3, 4, 5};
        System.out.println("数组中的元素为："+MyToString.toString(arr1));//[1, 2, 3, 4, 5]

    }
}
